package com.firewolf.springboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.firewolf.springboot.beans.TestService2;
import com.firewolf.springboot.beans.TestService3;
import com.firewolf.springboot.beans.TestService4;
import com.firewolf.springboot.service.TestService;

@RestController
public class TestController {

	@Autowired
	private TestService sService;
	
	@Autowired
	private TestService2 sService2;
	@Autowired
	private TestService3 sService3;
	
	@Autowired
	private TestService4 sService4;

	@RequestMapping("sayHello")
	public String sayHello() {
		System.out.println(sService2);
		System.out.println(sService3);
		System.out.println(sService4);
		return sService.sayHello();
	}
}
